#ifndef CONNECTFORM_H
#define CONNECTFORM_H

#include <QWidget>
#include <QHostAddress>

namespace Ui
{
    class ConnectForm;
}

class ConnectForm : public QWidget
{
    Q_OBJECT

    public:
        explicit ConnectForm(QWidget *parent = 0);
        ~ConnectForm();

    signals:
        void connectionAsked(QHostAddress, qint16);

    private slots:
        void on_connectButton_clicked();

        void on_portInputText_editingFinished();

        void on_addressInputText_editingFinished();

private:
        Ui::ConnectForm *ui;
        qint16 port;
        QHostAddress address;
        bool portIsOk;
        bool addressIsOk;
};

#endif // CONNECTFORM_H
